home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / WINHAK95.ZIP / PLUGINS / EXAMPL~5.WH < prev    next >
Encoding:
Text File  |  1996-04-16  |  1.9 KB  |  71 lines

  1. // WinHacker Script
  2. // Copyright (c) 1996 Wedge Software
  3. //
  4. // Full Registry Example
  5. //
  6.  
  7. [Main]
  8. Desc = Full Registry Example
  9. // Ask = Are you sure you want to run the Registry Example?
  10. // StartMessage = Starting Registry Example.
  11. // ExitMessage = Done.
  12.  
  13. [Registry]
  14. Procs = 5
  15.  
  16. [RegistryProc#1]
  17. // Ask = Run RegistryProc#1? (dword example)
  18. RootKey = HKEY_CURRENT_USER
  19. Path = Software\Wedge Software\WinHacker 95\Junk Yard
  20. Item = A DWORD
  21. Action = WriteDword
  22. Value = (dialog)
  23. Value.dialog.text = This is a test of the DWORD dialog, so please enter
  24. Value.dialog.text2 = a DWORD in the space below.  The default is 1003434.
  25. Value.dialog.default = 1003434
  26.  
  27.  
  28. [RegistryProc#2]
  29. // Ask = Run RegistryProc#2? (dword example)
  30. RootKey = HKEY_CURRENT_USER
  31. Path = Software\Wedge Software\WinHacker 95\Junk Yard
  32. Item = 
  33. Action = WriteString
  34. Value = (dialog)
  35. Value.dialog.text = This is a test of the String dialog, so please enter
  36. Value.dialog.text2 = a String in the space below.  The default is 100ab.
  37. Value.dialog.default = 100ab
  38.  
  39.  
  40. [RegistryProc#3]
  41. // Ask = Run RegistryProc#3? (hex example)
  42. RootKey = HKEY_CURRENT_USER
  43. Path = Software\Wedge Software\WinHacker 95\Junk Yard
  44. Item = Hex
  45. Action = WriteHex
  46. Value = (dialog)
  47. Value.dialog.text = This is a test of the Hex dialog, so please enter
  48. Value.dialog.text2 = a Hex value in the space below.  The default is 77 68
  49. Value.dialog.default = 77 68
  50.  
  51. // Value = 77 68 39 35
  52. // (it says "wh95")
  53.  
  54. // Create a value called "test" so we can delete it later
  55. [RegistryProc#4]
  56. Ask = Create value "test" so we can delete it later?
  57. RootKey = HKEY_CURRENT_USER
  58. Path = Software\Wedge Software\WinHacker 95\Junk Yard
  59. Item = test
  60. Action = WriteString
  61. Value = this is a test string!
  62.  
  63. // Delete "test"
  64. [RegistryProc#5]
  65. Ask = Delete value "test"?
  66. RootKey = HKEY_CURRENT_USER
  67. Path = Software\Wedge Software\WinHacker 95\Junk Yard
  68. Item = test
  69. Action = Delete
  70.  
  71.